const TokenKey = "sa-Token";
import { useLocalStorage } from "@vueuse/core";

const tokenStorage = useLocalStorage<null | string>(TokenKey, null);

export const getToken = () => tokenStorage.value;

export const setToken = (access_token: string) =>
  (tokenStorage.value = access_token);

export const removeToken = () => (tokenStorage.value = null);

export const super_admin_code = "super_admin";